﻿using System.Collections.Generic;
using System.Linq;
using System.Text;
using Pasys.PresentationCore;
using UIShell.OSGi;
using System.Windows.Forms;
using Pasys.PresentationCore.DockShell;
using Pasys.PresentationCore.DockShell.SmartPartInfos;
using System;

namespace Tools
{
    public class GenetorBaseProvider<T> : AbstractViewProvider where T :Form,  new()
    {


        public GenetorBaseProvider()
            : base(false)
        {
        }

        protected override Control CreateControl()
        {
            var f = new T()
            {
            };
            return f;
        }

        protected override ISmartPartInfo CreateViewInfo()
        {
            return new DockPanelSmartPartInfo()
            {
                //Icon = icon,
                DockingType = DockingType.Document,
                ShowStrategy = new DockStateShowStrategy(DockState.Document)
            };
        }

  
    }
}
